package com.czx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czx.dto.ResetPwdDto;
import com.czx.entity.MyPage;
import com.czx.entity.OldPassword;
import com.czx.entity.User;
import com.czx.common.utils.R;
import com.czx.vo.UserToken;


public interface UserService extends IService<User> {
    Integer doRegister(User user);
//    List<DiscussPost> getDiscussById();

    /*User login(User user);*/

    Integer updatePassword(OldPassword oldPassword,User user);


    UserToken login(String username, String password);

    User getInfoById(Integer id);

    User getUserById(Integer id);

    MyPage getFollowById(Integer id, MyPage page);

    MyPage getFansById(Integer id, MyPage page);

    R sendEmailCodeForResetPwd(String username);

    R resetPwd(ResetPwdDto resetPwdDto);

    User getUserByUsername(String username);
}
